package demo2;

public class Test2 {
    public static void main(String[] args) {
       MyLinkedList myLinkedList = new MyLinkedList() ;
       myLinkedList.addFirst(5);
       myLinkedList.addFirst(4);
       myLinkedList.addFirst(4);
       myLinkedList.addLast(4);
       myLinkedList.addIndex(1 ,4);
       myLinkedList.display();

       myLinkedList.removeAllKey(4);
       myLinkedList.display();
    }
}
